package com.deng.framework.beans.factory;

import org.springframework.beans.BeansException;

public interface BeanFactory {

    Object getBean(String name) throws BeansException;

    Object getBean(String name, Object... args) throws BeansException;

    <T> T getBean(String name, Class<T> requiredType) throws BeansException;

    //用在了注解模块
    <T> T getBean(Class<T> requiredType) throws BeansException;

    //用在了数据转换模块
    boolean containsBean(String name);
}
